home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Taifun / Taifun 068 (1988-08-15)(Ossowski, Stefan)(DE)(PD).zip / Taifun 068 (1988-08-15)(Ossowski, Stefan)(DE)(PD).adf / C-Light / Documentation.txt < prev    next >
Text File  |  1988-06-18  |  16KB  |  311 lines

  1.  
  2.  
  3.                            C-LIGHT
  4.               Copyright © 1987 by Ronald A. Peterson
  5.  
  6.  
  7.      The copy of C-Light contained on this disk is version 1.0
  8. of a scene editor and ray tracing program.  For those
  9. not familiar with ray tracing, it is a technique whereby very
  10. realistic three dimensional pictures of objects can be created
  11. by tracing the paths of rays of light through a scene.  The
  12. unique features of C-Light include:
  13.  
  14.    * Full Intuition interface for ease of use.
  15.    * Simple and quick scene creation using a powerful editor that lets you
  16.      visually place objects.
  17.    * Allows creation of scenes with up to 170 objects (spheres, cylinders
  18.      and cubes) each of which can be sized, rotated and located
  19.      independently in all three dimensions.
  20.    * Allows any number of light sources (up to object limit
  21.      of 170) with variable intensity and adjustable ambient light.
  22.    * Supports overscanned and interlaced-overscan images as well as
  23.      320 by 200 and 320 by 400 images, all in the standard IFF
  24.      format.
  25.    * Smoothly shaded objects with the color set selectable out of
  26.      4096 possible colors.
  27.    * Reflecting surfaces (mirrors).
  28.    * Shadows.
  29.    * Movable viewpoint (the observers eye.)
  30.    * Easy editing of scenes both during and after creation.
  31.    * Multitasking.
  32.  
  33. C-Light differs from other ray-tracers that have recently appeared
  34. in that it is extremely simple to use.  It requires no knowledge
  35. of three dimensional geometry (except that which you were born with)
  36. and presents the user with an interface similar to that found in the
  37. better paint programs available today.  In addition, C-Light can
  38. easily produce smooth curved shapes such as spheres, ellipsoids,
  39. and cylinders that are difficult to construct using polygon based
  40. systems.
  41.      C-Light is made up of several parts or modules.  The 
  42. C-Light scene editor allows the user to create a three 
  43. dimensional scene using simple primitive objects (currently spheres,
  44. cylinders, and cubes.)  These objects can be interactively 
  45. placed, stretched, shrunk and rotated using a very friendly mouse
  46. oriented interface.  The C-Light ray tracer then takes this scene
  47. description and calculates the resulting picture based on the 
  48. locations of the objects, light sources, and eyepoint.  Both 
  49. overscanned and PAL (European) formats are supported, with or 
  50. without interlace.  These pictures can then be saved to disk as 
  51. IFF picture files and viewed using the View utility which is 
  52. provided.  All programs are multitasking and will use fast RAM in
  53. place of chip memory where possible.
  54.  
  55.      This copyrighted version of C-Light is freely redistributable
  56. so long as it is not sold for profit or modified in any way and is
  57. accompanied by this text file which describes the software and its
  58. source.  All rights are reserved and reside with its author, Ronald
  59. A. Peterson.
  60.  
  61.      Since C-Light is a commercial product currently being 
  62. marketed, this demo version is slightly limited in that the 
  63. object editor will only allow the user to place ten objects in a 
  64. scene.  Anyone wishing to purchase a complete copy (which allows 
  65. placing up to 170 objects, includes complete documentation and is
  66. not copy protected---as yet) can do so by sending $59.95 to:
  67.  
  68.                       Ronald Peterson
  69.                       P.O. Box 614
  70.                       Milford, NH  03055
  71.  
  72.      Since C-Light is being independently marketed (inquiries from
  73. distributors are invited) please distribute this disk freely. 
  74. Posting to bulletin boards is also encouraged so long as this 
  75. text file remains with the software.  This version is already
  76. available on BIX and PeopleLink.
  77.  
  78.  Formalities aside, here is a brief description of how to use C-Light:
  79.  
  80.      It is necessary to use V1.2 of Workbench with C-Light and a
  81. Preferences setting for eighty column text is desirable.  C-Light
  82. is a complex program; if run on a 512K Amiga, it will require almost
  83. all memory to be available.  This means that you should have as few
  84. windows as possible open and no other programs running.  On an Amiga
  85. with more than 512K RAM, C-Light will gracefully multitask with only
  86. one side effect---calculating an interlaced picture will cause all
  87. screens to be interlaced.
  88.  
  89. C-Light makes extensive use of Intuition (gadgets, sliders, 
  90. menus, etc.) which means many functions can be easily understood
  91. just by trying the gadget or slider to see what it does.  The
  92. programs can be run from Workbench or from CLI.  C-Light is in
  93. two parts (C-LightI and C-LightII) and also includes two
  94. utilities: Video and View.
  95.  
  96. *---VIDEO ---*
  97.  
  98.      Calling up Video allows you to select screen resolution and
  99. PAL or USA compatability by responding to requestors which ask
  100. yes or no questions about your choices.  (Note that Video has no
  101. effect on pictures that have already been generated.)
  102.  
  103. *--- C-LightI ---*
  104.  
  105.      C-LightI is the scene editor.  Upon calling it up you will
  106. see some gadgets on the right side of the screen and a title
  107. bar.  There is a drag-down menu attached to the left side of the
  108. title bar.  This is the utilities menu which contains the
  109. following functions:
  110.  
  111.       Hide Title Bar - Hides/restores the title bar.
  112.       Hide Selectors - Hides/restores the gadgets on the right.
  113.       New Directory  - Change directory (drawer) or disk.
  114.       Colors         - Lets you change the CURRENT screen colors,
  115.                        not the colors used in the scene.
  116.       Reset All      - For starting a new scene.
  117.       Load file      - Load in a scene file.
  118.       Save file      - Save a scene file.
  119.       Exit           - Go have a look in the fridge.
  120.  
  121. Most of these menu selections call up requestors. The use of these
  122. requestors conforms to the rules outlined in the "Introduction to Amiga"
  123. manual.  Try loading in and playing with the example scene file
  124. included on the disk which is entitled "Columinaire".
  125.  
  126.   The function of the gadgets on the right side of the
  127. screen will be covered next:
  128.  
  129. BALL, CUBE, CAN - When clicked on, these gadgets will cause an 
  130. outline (wireframe image for the technical among you) of the 
  131. corresponding object to appear.  Using the mouse you can move the
  132. object left/right or up/down.  By clicking the right mouse button
  133. (when the cursor is NOT over the title bar) the object can be 
  134. moved in/out in depth with the mouse instead of up/down.  
  135. Clicking the right button again will restore up/down movement.  
  136. Because the space in which you are moving the object is much 
  137. larger than the screen of the Amiga, the object does not follow 
  138. the cursor position.  For example, if the object is in the center
  139. of the screen and the cursor is on the right edge of the screen, 
  140. you can keep moving the mouse to the right (picking it up and 
  141. moving it, picking it up and moving it, ...) and even though the 
  142. cursor doesn't move, the object will keep moving to the right 
  143. eventually going off the screen.  A mouse is inherently a device 
  144. for manipulating two dimensional objects so this is how I turn it
  145. into a 3D manipulator.  You can think of the object being moved 
  146. as a new, three dimensional cursor for the mouse if you like.
  147.      As you are moving the object around you will see the X, Y, Z
  148. coordinates of the CENTER of the object being displayed in screen
  149. coordinates.  Once you have the object somewhere near where you 
  150. want it, click the left mouse button and the Object Modification 
  151. Requestor will appear.  (Fancy name eh?  I thought that one up 
  152. myself.)  The sliders on this requestor let you change the size 
  153. of the object in the X, Y and Z directions and allow you to 
  154. rotate the object around the X, Y and Z axis.  The gadgets 
  155. labeled A, B, C, M let you pick the color for the object.  
  156. I will discuss later how to set these colors to whichever out of
  157. the 4096 possible colors that you choose and how to set
  158. the background color for a scene.  The "M" gadget makes the
  159. object have a mirror (almost perfectly reflecting) surface.
  160.      Hit the CANCEL gadget if you decide you don't want the
  161. object.  The requestor can be moved by dragging it via its
  162. title bar.  You can still move the object around when the object
  163. modification requestor is present by clicking with the left mouse
  164. button anywhere outside the requestor.  The requestor becomes 
  165. inactive and you can then move the object around using the mouse,
  166. just as you did before the requestor appeared.  Clicking the left
  167. button again activates the requestor again and stops the object 
  168. from moving when you move the mouse.  In this way you can 
  169. alternate between moving the object and sizing or rotating it 
  170. until you have it exactly as you want it.  Then, hit the close 
  171. gadget in the upper left corner of the requestor and the 
  172. requestor will disappear and the object will change color 
  173. indicating that it has been set in place.
  174.  
  175. DEL, CHG - Once you have placed an object you can still change 
  176. it.  Hit the DELete gadget and then click on the CENTER of the 
  177. object you want to delete with the left mouse button.  The object
  178. will be highlighted in a different color and a requestor will ask
  179. if this is the object you really want to delete.
  180.      The CHG gadget works in a similar fashion.  Hit CHG, then 
  181. click on the object you want to change.  It will be highlighted 
  182. in a different color and the object modification requestor will 
  183. appear.  From then on you can treat everything just as though you
  184. were placing the object for the first time.
  185.  
  186. VIEW - Once you have defined a scene you can use this gadget to 
  187. move, rotate, stretch or shrink the scene as a whole.  Click on 
  188. it and you will see the scene disappear, then a cube and the 
  189. object modification requestor take its place.  Imagine your scene
  190. is inside this cube.  You can then rotate it, move it, and size 
  191. it.  Hitting the close gadget on the requestor will cause the 
  192. scene to be redrawn using the new view.  This is also useful for
  193. rotating a scene to get at and change the parts of it that are in
  194. back of other objects.
  195.  
  196. EYE - This allows you to set how close or far the observers eye 
  197. is from the scene.  It uses the object modification requestor 
  198. again and works just like moving your own eye nearer or further 
  199. from a window (the screen of your monitor being the window.)  As 
  200. you move closer to the window you can see more of the scene.  It 
  201. also becomes more distorted by perspective (an effect like a fish
  202. eye lense on a camera.)  As you move further away you can see 
  203. less of the scene through the window and things become less 
  204. distorted and more natural looking.  Currently the eye point can 
  205. only be moved closer or further away; I may add up/down and 
  206. left/right movement to it if it seems useful.  Clicking on the 
  207. close gadget will cause the scene to be redrawn using the new 
  208. eyepoint.
  209.  
  210. COLR - This gadget calls up a requestor that allows you to change
  211. the color of the OBJECTS.  It does not affect the current colors 
  212. used on the screen.  This is where the colors A, B, C and the 
  213. background color are determined.  The colors you pick for A, B, 
  214. and C are the colors that will be used in your object at its 
  215. brightest spots.  The brightest spots will be those closest to 
  216. the light sources.  The rest of the object will be in blacker
  217. shades of this color, getting dimmer the further that part of the
  218. object is from the light.  (Just like in real life!)
  219.  
  220. LITE - This gadget allows you to place light sources in your 
  221. scene.  A light is treated just like an object (BALL, CUBE, CAN)
  222. and is placed in the same way.  Sizing and rotation of light 
  223. sources has no effect on the picture.  Lights are point sources 
  224. that radiate in all directions.  The only limit on the number of 
  225. light sources is the limit on the total number of objects (10 for
  226. this demo version, but then there would be no room for objects.) 
  227. More lights means a longer calculation time though.
  228.  
  229. *--- C-LightII ---*
  230.  
  231.      Once you have created a scene and saved it to disk, the 
  232. second part of the program comes into play - C-LightII.  
  233. C-LightII is the part that actually draws the scene.  Ray tracing
  234. is a complex mathematical process so this can take some time - 
  235. from a half hour up to several days.  When you call up C-LightII 
  236. you will see a requestor.  Hitting "Get File" calls up a 
  237. directory requestor that allows you to select the scene you want 
  238. to calculate.  After picking a scene you can set some of the 
  239. overall characteristics of the scene with the sliders and 
  240. gadgets:
  241.  
  242. LIGHT slider - This sets the intensity of all the lights in a 
  243. scene.  The number displayed near the slider is the range at 
  244. which the lights will be at half intensity.
  245. AMBIENT slider - This sets the background level of light that 
  246. illuminates ALL objects equally.
  247. BLEND slider - This one controls how much blending together of 
  248. colors occurs.  Given ten shades of each color with which to shade
  249. an object, randomly blending them a little makes the picture
  250. look smoother.  Too much and your picture will be lost in fuzz.
  251. Too little and you will see bands of color.
  252. ALIAS gadget - Turning this on enables anti-aliasing.  This is a 
  253. simple algorithm that tries to lessen the effects of jagged edges
  254. (caused by the fact that the screen is made up of a limited 
  255. number of rectangular dots.)  It doesn't always improve the picture.
  256. SHADOW gadget - Turning this gadget on will cause shadows to be 
  257. calculated for the scene.  Shadows are VERY time consuming and 
  258. can easily cause a complex picture to take days to calculate,
  259. particularly if there are many light sources.
  260. SAVE gadget - This allows you to name and save the created 
  261. picture as an IFF file.  The save requestor will come up 
  262. automatically when the picture is done.
  263.      You can get back to the main requestor at any time (in order to
  264. exit, change settings or save an unfinished picture) by clicking
  265. once with the left mouse button anywhere in the lower three quarters
  266. of the screen.
  267.  
  268. *--- VIEW ---*
  269.  
  270.      Finally, the VIEW program is an IFF picture viewer that 
  271. allows you to look at the saved IFF picture files (overscanned 
  272. ones too!)  To view a picture from Workbench you can either just
  273. double-click on the pictures icon or click once on the 
  274. pictures icon while holding down the left Amiga and Shift keys 
  275. simultaneously, then double click on the View icon.  From CLI you
  276. can type: VIEW 'picture' where 'picture' is the name of the file
  277. you want to see (without the '.ilbm' extension.)  Click anywhere
  278. in the upper left corner to end it.
  279.  
  280.      So...that should be enough to get you started.  I have tried
  281. to make this program as simple to use as possible, modeling it 
  282. after paint programs like DeluxePaint.  In fact, because shading 
  283. is a tough thing to do with a mouse, C-Light makes a nice 
  284. addition to paint programs since it lets you easily create 
  285. backgrounds of shaded 3D objects.  Have fun with this demo 
  286. version and if you like it, send a check my way and tell a friend
  287. about it!
  288.  
  289.      Let me know of any bugs that you find and I will correct 
  290. them and repost a new demo version (and maybe send you a free 
  291. copy of C-Light if you find something serious.)  Also, not having
  292. a European Amiga, I have not been able to test overscan while in 
  293. PAL mode.  I would appreciate knowing if it works.  Future 
  294. enhancements will be offered for a small fee to registered users 
  295. and will include:
  296.  
  297.      More object primitives - Cones, Half spheres, Trapezoidal
  298.          patches.
  299.      Specular reflections (glossy surfaces)
  300.      Better memory management.
  301.      Animation editor & viewer - for making short, animated
  302.         movies on the Amiga (in the ANIM format) or long animated
  303.         movies on film or video tape.
  304.  
  305.  
  306.  
  307. Amiga, Workbench and Intuition are trademarks of Commodore-Amiga,
  308. Inc.
  309. DeluxePaint is a trademark of Electronic Arts.
  310.  
  311.